<?php
namespace Admin\Controller;
use Think\Controller;
class MessageManageController extends BaseController {
    public function index(){
    	$this->login_verify();
    	$news=M("comment");//获取到comment表格
    	$contact=$news->select();
    	// var_dump($contact);
    	
    	$this->assign("contact",$contact);
        $this->display();
    }
    public function message(){
    	$news=M("comment");//获取到comment表格
    	$id=$_GET['id'];
    	//echo $id;
    	$result=$news->where('id='.$id)->delete();
    	if($result){
			$this->success("删除成功",U('MessageManage/index'));
    	} else {
    		$this->error("删除失败");
    	};

	}
}